package com.lu.common.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component// 以组件的方式使用，使用的时候可以直接注入
@ConfigurationProperties(prefix="")// 用来指定properties配置文件中的key前缀
@PropertySource("classpath:generator.properties")// 用来指定配置文件的位置
public class ConfigurationDO {

    private String author;
    private String email;
    private String packages;
    private String autoRemovePre;
    private String tablePrefix;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPackages() {
        return packages;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }

    public String getAutoRemovePre() {
        return autoRemovePre;
    }

    public void setAutoRemovePre(String autoRemovePre) {
        this.autoRemovePre = autoRemovePre;
    }

    public String getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix) {
        this.tablePrefix = tablePrefix;
    }

    @Override
    public String toString() {
        return "ConfigurationDO{" +
                "author='" + author + '\'' +
                ", email='" + email + '\'' +
                ", packages='" + packages + '\'' +
                ", autoRemovePre='" + autoRemovePre + '\'' +
                ", tablePrefix='" + tablePrefix + '\'' +
                '}';
    }
}
